#ifndef MBOX_H
#define MBOX_H

#include <QGraphicsWidget>
#include "mcard.h"

class MBox : public QGraphicsWidget
{
    Q_OBJECT
public:
    enum {
        SIZE = 25
    };
    explicit MBox(QGraphicsItem *parent = 0);
    void setCard(MCard *c)
    {
        card = c;
    }

    MCard getCard();

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

    bool visible, selected, hint, active;

signals:
    
public slots:
    void setColorVisible(bool visible);
    void setColorActive(bool active);
    void setColorHint(bool hint);
    void setColorSelected(bool selected);

private:

    MCard *card;
};

#endif // MBOX_H
